package com.baikeyang.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * Created by lenovo on 2019/4/26.
 */
@TableName(value = "T_ADMINISTRATIVE_AREA")
public class AdministrativeArea extends BaseModel<AdministrativeArea> implements Serializable {

    private static final long serialVersionUID = -3748989438262177033L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 地域编码
     */
    private String code;

    /**
     * 父级地域编码
     */
    private String parentCode;

    /**
     * 地域级别
     */
    private Integer level;

    /**
     * 地域名称
     */
    private String name;

    /**
     * 地域简称
     */
    private String shortName;

    /**
     * 地域全称(驻地)
     */
    private String fullName;

    /**
     * 地域总计
     */
    private String statistic;

    /**
     * 地域人口
     */
    private String population;

    /**
     * 地域面积
     */
    private String area;

    /**
     * 地域区号
     */
    private String areaCode;

    /**
     * 地域邮编
     */
    private String post;

    /**
     * 所属省会城市
     */
    private String provincialCapital;

    /**
     * 所属省人口
     */
    private String provincialPopulation;

    /**
     * 所属省面积
     */
    private String provincialArea;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getStatistic() {
        return statistic;
    }

    public void setStatistic(String statistic) {
        this.statistic = statistic;
    }

    public String getPopulation() {
        return population;
    }

    public void setPopulation(String population) {
        this.population = population;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getProvincialCapital() {
        return provincialCapital;
    }

    public void setProvincialCapital(String provincialCapital) {
        this.provincialCapital = provincialCapital;
    }

    public String getProvincialPopulation() {
        return provincialPopulation;
    }

    public void setProvincialPopulation(String provincialPopulation) {
        this.provincialPopulation = provincialPopulation;
    }

    public String getProvincialArea() {
        return provincialArea;
    }

    public void setProvincialArea(String provincialArea) {
        this.provincialArea = provincialArea;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Provinces{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", parentCode='" + parentCode + '\'' +
                ", level=" + level +
                ", name='" + name + '\'' +
                ", shortName='" + shortName + '\'' +
                ", fullName='" + fullName + '\'' +
                ", statistic='" + statistic + '\'' +
                ", population='" + population + '\'' +
                ", area='" + area + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", post='" + post + '\'' +
                ", provincialCapital='" + provincialCapital + '\'' +
                ", provincialPopulation='" + provincialPopulation + '\'' +
                ", provincialPopulation='" + provincialPopulation + '\'' +
                ", provincialArea='" + provincialArea + '\'' +
                ", createUser=" + super.getCreateUser() +
                ", createTime=" + super.getCreateTime() +
                ", updateUser=" + super.getUpdateUser() +
                ", updateTime=" + super.getUpdateTime() +
                '}';
    }

}
